//
//  CyclingRouteDetailModel.m
//  Cycling
//
//  Created by CSS on 4/14/23.
//

#import "CyclingRouteDetailModel.h"

@implementation CyclingRouteDetailModel

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"routeId":@"id"};
}

//- (void)setHeart:(CyclingRouteHeartModel *)heart
//{
//    _heart = heart;
//    
//    [heart fixHeartData];
//}

@end

@implementation CyclingRouteHighlyModel

@end

@implementation CyclingRouteSpeedModel

@end

@implementation CyclingRouteHeartModel

- (void)fixHeartData
{
    if(self.data.count < self.x.count) {
        NSMutableArray *currentDatas = [self.data mutableCopy];
        if(currentDatas) {
            currentDatas = [NSMutableArray array];
        }
        for(NSInteger idx = self.data.count; idx < self.x.count; idx++) {
            [currentDatas addObject:@0];
        }
        self.data = currentDatas;
    }
}

@end

@implementation CyclingRouteOverallModel

@end

@implementation CyclingRouteBicycleTypeModel


@end

@implementation CyclingRouteGroundTypeModel


@end
